package view

var ddns = `{{define "ddns"}}
{{template "header" .}}
        <div class="col-md-6" role="main"><h3>动态域名 - DNS.HE.NET</h3> <hr>
        		<form role="form" method="POST" >  

        		{{if .saveok}}
        		<div class="form-group bs-example-bg-classes">
				    <p class="bg-info">新设置已经生效。</p>				
				</div>
				{{end}}
       						    	            	           
                <div class="form-group">
				<label for="ddns_name" class="col-lg-2 control-label">域名地址:</label>
	            <input type="text" name="ddns_name" id="ddns_name" value="{{.ddns_name}}" class="form-control" placeholder="" />
	            </div>

	            <div class="form-group">
				<label for="ddns_key" class="col-lg-2 control-label">域名密码:</label>
	            <input type="text" name="ddns_key" id="ddns_key" value="{{.ddns_key}}" class="form-control" placeholder="" />
	            </div>

				<div class="form-group">
				<input type="checkbox" name="ddns_enable" id="ddns_enable" {{ if eq .ddns_enable 1}}checked{{end}}/>启用
	            </div>
	              
				         				
				<input type="submit" class="btn btn-primary btn-lg" value="保 存" />							
				</form>
		</div>
{{template "footer" .}}
{{end}}`
